<?php

class ManageIndexAction extends LtAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'bylayout';
	}

	public function execute()
	{
		$this->data['roleinfo'] = ManagerRole::getRoleInfFromCookie(C('LtUrl')->generate('manage','index'));

		$this->template = "Manage-Index";

		$noticestr = $this->context->get('noticestr');
		if(!empty($noticestr))
		{
			$noticestr = "<div class='warning'>{$noticestr}</div>";
		}
		$this->data['noticestr'] = $noticestr;

		//echo 'file:'.__FILE__;
		//echo " func:ManageIndexAction::execute()";
		$this->data['title'] = 'manage index';
		$this->data['actionFilePath'] = __FILE__;
		//echo "{$this->data['actionFilePath']}";

		$this->data['headnavbar']['index'] = 'selected';
		$this->data['headnavbar']['hyperlink'] = '';
		$this->data['headnavbar']['customer'] = '';
		$this->data['headnavbar']['visitlog'] = '';

		$this->data['pagination']='';
	}
}
